package com.trg.designmodel.builder.trad;

/**
 * @ClassName: AbstractHouse
 * @Description: 建造者模式-通用模式
 *      主要讲究 的是顺序
 * @Author: tangrg
 * @Date: 2021/7/2 14:42
 * @Version: 1.0
 * @Return:
 **/
public abstract class AbstractHouse {

    //打桩
    public abstract void buildBasic();

    //砌墙
    public abstract void buildWalls();

    //封顶
    public abstract void roofed();

    public void build(){
        buildBasic();
        buildWalls();
        roofed();
    }

}
